import { GameConst } from "../../../../component/gconst/GameConst";
import { Language } from "../../../../../extend/language/Language";
import { ImagesConst } from "../../../resource/ImagesConst";
type int = number;
//class GuildAnimalType
    
    export  class GuildAnimalType
    {
        

        public static getGrowthByType(arg1: int): int
        {
            if (arg1 == GuildAnimalType.LianQi) 
            {
                return GameConst.GuildBeastGrowthOne;
            }
            if (arg1 == GuildAnimalType.ZhuJi) 
            {
                return GameConst.GuildBeastGrowthTwo;
            }
            if (arg1 == GuildAnimalType.JieDan) 
            {
                return GameConst.GuildBeastGrowthThree;
            }
            return -1;
        }

        public static getTypeByGrowth(arg1: int): int
        {
            if (arg1 >= GameConst.GuildBeastGrowthOne && arg1 < GameConst.GuildBeastGrowthTwo) 
            {
                return GuildAnimalType.LianQi;
            }
            if (arg1 >= GameConst.GuildBeastGrowthTwo && arg1 < GameConst.GuildBeastGrowthThree) 
            {
                return GuildAnimalType.ZhuJi;
            }
            if (arg1 >= GameConst.GuildBeastGrowthThree) 
            {
                return GuildAnimalType.JieDan;
            }
            return -1;
        }

        public static getTypeName(arg1: int): string
        {
            if (arg1 == GuildAnimalType.LianQi) 
            {
                return Language.getString(57537);
            }
            if (arg1 == GuildAnimalType.ZhuJi) 
            {
                return Language.getString(57538);
            }
            if (arg1 == GuildAnimalType.JieDan) 
            {
                return Language.getString(57539);
            }
            return Language.getString(20400);
        }

        public static getBitmapNameByType(arg1: int): string
        {
            if (arg1 == GuildAnimalType.LianQi) 
            {
                return ImagesConst.GuildAnimalLabel0;
            }
            if (arg1 == GuildAnimalType.ZhuJi) 
            {
                return ImagesConst.GuildAnimalLabel1;
            }
            if (arg1 == GuildAnimalType.JieDan) 
            {
                return ImagesConst.GuildAnimalLabel2;
            }
            return null;
        }

        public static /* var */LianQi: int=0;

        public static /* var */ZhuJi: int=1;

        public static /* var */JieDan: int=2;
    }

            GuildAnimalType.LianQi = 0;
            GuildAnimalType.ZhuJi = 1;
            GuildAnimalType.JieDan = 2;
        